
<?$this->load->view('admin/tools/admin-header')?>
<?$this->load->view('admin/tools/admin-menu')?>
<?$this->load->view('admin/tools/admin-ajaxscr')?>
<div class="wrap">
<a href="<?=site_url('administrator/home');?>"><div id="icon-index" class="icon32"><br /></div></a><br>
<h3><a>Home -> Tulis -> Prestasi</a></h3>

<div id="dashboard-widgets-wrap">
<form action="<?=site_url('paneladm/galleryadm/update_foto')?>" method='POST'>
<table>

<?foreach ($query->result() as $row)
		{
			$id			= $row->id;
			$album_id	= $row->album_id;
			$deskripsi	= $row->deskripsi;
			$url		= $row->url_gambar;
			$nama		= $row->nama_gambar;
			$slideshow	= $row->slideshow;
		}?>

<tr>
<td><div>
<img src="<?=$url;?>" width="150" height="150">
</div></td></tr>

		
<tr>
<td>
<div>
<h3><label for="title">Nama Foto</label></h3>
<input type="text" name="nama_foto" size="30" value="<?=$nama?>"/>
<input type="hidden" name="album_id" size="30" value="<?=$album_id?>"/>
</div></td></tr>

<tr>
<td>
<div>
<h3><label for="title">Deskripsi</label></h3>
<input type="text" name="deskripsi_foto" size="30" value="<?=$deskripsi?>"/>
<input type="hidden" name="id" value="<?=$id?>">
</div></td>
</tr>
<tr>
<td>
<h3><label for="title" style="padding-right:20px">Slideshow</label><input type="checkbox" name="slideshow" id="isCheckbox" value="1" <?if($slideshow>0) echo "checked=checked'"?>/></h3>
</td>
</tr>

<tr>
<td>
<div><br>
<input type="submit" name="submit" class="button-primary" value="Ubah">
</div>
</td>
</tr>
</table>
</div>
</div><!-- wrap -->


<div class="clear"></div></div><!-- wpbody-content -->
<div class="clear"></div></div><!-- wpbody -->
<div class="clear"></div></div><!-- wpcontent -->
</div><!-- wpwrap -->

<!--admin-footer-->
<?$this->load->view('admin/tools/admin-footer');?>
<!--admin-footer-->
